﻿<Page
    x:Class="TextRichText.DemoPage3"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:TextRichText"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Helpers="using:Windows8Accelerator.Core.Xaml.Helpers"
    xmlns:Storage="using:Windows8Accelerator.Core.Xaml.Storage"
    mc:Ignorable="d">

    <Page.Resources>
        <Storage:StringLoader SourceFilePath="/Assets/HTMLPage1.html" StorageLocation="InstalledLocation" x:Key="html" />
    </Page.Resources>
    
    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <ScrollViewer Style="{StaticResource VerticalScrollViewerStyle}">
            <RichTextBlock                   
                    Margin="50"
                    x:Name="RichTextBlock"
                    VerticalAlignment="Top"                            
                    Helpers:RichTextBlockHelper.HtmlSource="{Binding Content, Source={StaticResource html}}"
                    >
                <Paragraph x:Name="RichTextHtmlSourcePlaceHolder"/>
            </RichTextBlock>
        </ScrollViewer>
    </Grid>
</Page>